home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6128 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  988 b 

  1. Path: news.voicenet.com!news
  2. From: artem@voicenet.com (Artem Koutchine)
  3. Newsgroups: fido7.watcom-general,comp.lang.c,comp.lang.c++,fido7.watcom-c
  4. Subject: HELP ME ASAP!! (passing an augument to DOS4GW program)
  5. Date: Sun, 11 Feb 1996 00:50:44 GMT
  6. Organization: Voicenet - Internet Access - (215)674-9290
  7. Message-ID: <4fj48j$bik@news.voicenet.com>
  8. NNTP-Posting-Host: philly259.voicenet.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hello !!!
  12.  
  13.     I need help with Watcom C/C++ 10.5.
  14. I am writing a program that have to get some arguments from a
  15. command line. It is DOS4GW  extender program and i usuallly
  16. i declare main as
  17.  
  18. int main (int argc, char* argv[])
  19.  
  20. But somehow when i compile it as DOS4GW program the only
  21. argument it get is argv[0]  even if i start the program with 4 params
  22. it still does not get them, but  argc contains the right number of
  23. arguments.
  24.  
  25. BUt somehow, when i compile it as normal DOS16 proggie it work
  26. perfectly.
  27.  
  28. What is the problem ? PLEASE HELP !
  29.  
  30. Thank you 
  31.  
  32. Artem
  33.  
  34.